a=input("请输入一个字符串")
dict = {"字符":0,"空格":0,"数字":0,"其它":0}
for b in a:
    if b>='a'and b<='z' or b>='A' and b<='Z':
        dict["字符"]+=1
    elif b==" ":
        dict["空格"]+=1
    elif b=='0' or b=='1' or b=='2' or b=='3' or b=='4' or b=='5' or b=='6' or b=='7' or b=='8' or b=='9':
        dict["数字"]+=1
    else:
        dict["其它"]+=1
print(dict)
#print("字符")
#print("空格")
#print("数字")
#print("其它")
        
